diff options
| author | Yuqian Yang <crupest@crupest.life> | 2026-01-23 23:16:45 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2026-01-24 16:38:33 +0800 |
| commit | 6d39cee75e7ef7c5e06d1a745a32224e11d68c37 (patch) | |
| tree | 0f2646b569e8af6a2f464eb2755553eda0fe593b /www-2/src/pages/[...id].astro | |
| parent | 78e3e234877cb10ca1088df31e831b36fa4a12c0 (diff) | |
| download | crupest-6d39cee75e7ef7c5e06d1a745a32224e11d68c37.tar.gz crupest-6d39cee75e7ef7c5e06d1a745a32224e11d68c37.tar.bz2 crupest-6d39cee75e7ef7c5e06d1a745a32224e11d68c37.zip | |
HALF WORK!astro
Diffstat (limited to 'www-2/src/pages/[...id].astro')
| -rw-r--r-- | www-2/src/pages/[...id].astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www-2/src/pages/[...id].astro b/www-2/src/pages/[...id].astro index b3c5b40..bbaed88 100644 --- a/www-2/src/pages/[...id].astro +++ b/www-2/src/pages/[...id].astro @@ -4,8 +4,8 @@ import { getCollection, render } from "astro:content"; import ArticlePage from "../layouts/ArticlePage.astro"; export async function getStaticPaths() { - const posts = await getCollection("blogs"); - return posts.map((post) => ({ + const articles = await getCollection("articles"); + return articles.map((post) => ({ params: { id: post.id }, props: { post }, })); |
